package com.huangpeng.designmodel.decorate;

/**
 * @Author huangpeng
 * @Title 具体装饰类
 * @Package
 * @Date 2020/10/23 12:08
 * @Description 实现了ShapeDecorator的装饰类
 * @Version 1.0
 */
public class PersonGameRoleDecorator extends GameRoleDecorator {
    public PersonGameRoleDecorator(GameRole decoratedGameRole) {
        super(decoratedGameRole);
    }

    @Override
    public String person() {
        StringBuilder sb = new StringBuilder();
        sb.append(decoratedGameRole.person()).append("我可以装备橙武");
        return sb.toString();
    }
}
